//
//  NSDate+Extension.swift
//  MQWeibo
//
//  Created by 毛强 on 16/1/4.
//  Copyright © 2016年 itheima. All rights reserved.
//

import Foundation

extension NSDate{
    class func sinaDate(string: String) -> NSDate? {
        let dt = NSDateFormatter()
        dt.dateFormat = "EEE MMM dd HH:mm:ss z yyyy"
        dt.locale = NSLocale(localeIdentifier: "en_US")
        let result = dt.dateFromString(string)
        return result
    }
}
